package com.ucap.weking.guangan.views;

import android.content.Context;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.ucap.weking.guangan.R;

/**
 * Created by weking on 2017/10/18.
 */

public class MyToast {
    public static void showTrue(Context context, String msg) {
        Toast toast = new Toast(context);
        View view = View.inflate(context, R.layout.toast_true, null);
        TextView tvMsg = (TextView) view.findViewById(R.id.tv_msg);
        tvMsg.setText(msg);
        toast.setView(view);
        toast.show();
    }
}
